//
//  BaseViewController.m
//  AudioVideo
//
//  Created by xueshan1 on 2019/8/22.
//  Copyright © 2019 xueshan1. All rights reserved.
//

#import "BaseViewController.h"

@interface BaseViewController ()

@end

@implementation BaseViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.modalPresentationStyle = UIModalPresentationFullScreen;
    }
    return self;
}

- (instancetype)init
{
    self = [super init];
    if (self) {
        self.modalPresentationStyle = UIModalPresentationFullScreen;

    }
    return self;
}

- (void)dealloc{
    NSLog(@"%@ dealloc", [self class]);
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor blackColor];
    [self setupUI];
    
    if ((kWidth == 375 && kHeight == 812) ||
        (kWidth == 414 && kHeight == 896)) {
        
        [self isIphoneX];
    }
}

- (void)setupUI{
    
}
- (IBAction)backAction:(id)sender {
    [[XSAVPlayer shareInstance]sf_deallocPlayer];
    [self.navigationController popViewControllerAnimated:YES];
    
}

- (void)isIphoneX{
    
    
}



@end
